package com.tfb.rong;

import java.util.Date;

public class AssessmentBean {

    private String                    id;
    private String                    language;
    private Integer                   status;
    private Date                      lastmodify;
    private String                    createdby;
    private COVERPAGE                 cover;
    private PersonalInformationPage   personalInformation;
    private ChoiceAndControlPage      choiceAndControl;
    private CommunicationPage         communication;
    private PersonalCarePage          personalCare;
    private NutritionHydrationPage    nutritionHydration;
    private MedicalHealthPage         medicalHealth;
    private MedicationPage            medication;
    private KeepSafe_Page             keepSafe;
    private RiskAssessMentPage        riskAssessMent;
    private AdvancedCarePlanPage      advancedCarePlan;
    private SocialCulturalLeisurePage socialCulturalLeisure;
    private CarersUnpaidSupportPage   carersUnpaidSupport;
    private LearningWorkPage          learningWork;
    private BeParentPage              beParent;
    private SignaturePage             signature;

    public AssessmentBean() {
    }

    public AssessmentBean(AssessmentWithBLOBs ad) {
        id = ad.getId();
        language = ad.getLanguage();
        status = ad.getStatus();
        lastmodify = ad.getLastmodify();
        createdby = ad.getCreatedby();
        cover = new COVERPAGE();
        cover.setName(ad.getCoverName());
        cover.setDate(ad.getCoverDate());
        cover.setCompleteddate(ad.getCoverCompleteddate());
        cover.setCompletedby(ad.getCoverCompletedby());
        personalInformation = new PersonalInformationPage();

        personalInformation.setAddress(ad.getPersonalinformationAddress());
        personalInformation.setDob(ad.getPersonalinformationDob());
        personalInformation.setEmail(ad.getPersonalinformationEmail());
        personalInformation.setHino(ad.getPersonalinformationHino());

        personalInformation.setName(ad.getPersonalinformationName());
        personalInformation.setTel(ad.getPersonalinformationTel());
        personalInformation.setTitle(ad.getPersonalinformationTitle());
        personalInformation.setLpa(new Personalinformation_LPA());
        personalInformation.getLpa().setName(ad.getPersonalinformationLpaName());
        personalInformation.getLpa().setRelationship(ad.getPersonalinformationLpaRelationship());
        personalInformation.getLpa().setTel(ad.getPersonalinformationLpaTel());
        personalInformation.setNok(new Personalinformation_Nok());
        personalInformation.getNok().setAddress(ad.getPersonalinformationNokAddress());
        personalInformation.getNok().setEmail(ad.getPersonalinformationNokEmail());
        personalInformation.getNok().setName(ad.getPersonalinformationNokName());
        personalInformation.getNok().setRelationship(ad.getPersonalinformationNokRelationship());
        personalInformation.getNok().setTel(ad.getPersonalinformationNokTel());
        choiceAndControl = new ChoiceAndControlPage();
        if (null != choiceAndControl) {
            choiceAndControl.setAgreeddecision(ad.getChoiceandcontrolAgreeddecision());
            choiceAndControl.setAssessorview(ad.getChoiceandcontrolAssessorview());
            choiceAndControl.setAttorneyAttorneytype(ad.getChoiceandcontrolAttorneyAttorneytype());
            choiceAndControl.setAttorneyHaveornot(ad.getChoiceandcontrolAttorneyHaveornot());
            choiceAndControl.setNotes(ad.getChoiceandcontrolAttorneyNotes());
            choiceAndControl.setAttorneyOthertype(ad.getChoiceandcontrolAttorneyOthertype());
            choiceAndControl.setAttorneyRegistered(ad.getChoiceandcontrolAttorneyRegistered());
            choiceAndControl.setMyview(ad.getChoiceandcontrolMyview());
        }
        communication = new CommunicationPage();
        if (null != communication) {
            communication.setAgreeddecision(ad.getCommunicationAgreeddecision());
            communication.setAssessorview(ad.getCommunicationAssessorview());
            communication.setDetail(ad.getCommunicationDetail());
            communication.setMethod_0(ad.getCommunicationMethod0());
            communication.setMethod_1(ad.getCommunicationMethod1());
            communication.setMethod_2(ad.getCommunicationMethod2());
            communication.setMethod_3(ad.getCommunicationMethod3());
            communication.setMethod_4(ad.getCommunicationMethod4());
            communication.setMethod_5(ad.getCommunicationMethod5());
            communication.setMethod_6(ad.getCommunicationMethod6());
            communication.setMethod_7(ad.getCommunicationMethod7());
            communication.setMethod_8(ad.getCommunicationMethod8());
            communication.setMethod_9(ad.getCommunicationMethod9());
            communication.setMethod_10(ad.getCommunicationMethod10());
            communication.setMethod_11(ad.getCommunicationMethod11());
            communication.setMethod_12(ad.getCommunicationMethod12());
            communication.setMethod_13(ad.getCommunicationMethod13());
            communication.setMyview(ad.getCommunicationMyview());
            communication.setNotes(ad.getCommunicationNotes());
            communication.setRegister(ad.getCommunicationRegister());
        }
        personalCare = new PersonalCarePage();
        if (null != personalCare) {
            personalCare.setAgreeddecision(ad.getPersonalcareAgreeddecision());
            personalCare.setAssessorview(ad.getPersonalcareAssessorview());
            personalCare.setAssist(ad.getPersonalcareAssist());
            personalCare.setMyview(ad.getPersonalcareMyview());
            personalCare.setNotes(ad.getPersonalcareNotes());
        }
        nutritionHydration = new NutritionHydrationPage();
        if (null != nutritionHydration) {
            nutritionHydration.setAgreeddecision(ad.getNutritionhydrationAgreeddecision());
            nutritionHydration.setAssessorview(ad.getNutritionhydrationAssessorview());
            nutritionHydration.setMyview(ad.getNutritionhydrationMyview());
            nutritionHydration.setNotes(ad.getNutritionhydrationNotes());
        }
        medicalHealth = new MedicalHealthPage();
        if (null != medicalHealth) {
            medicalHealth.setAgreeddecision(ad.getMedicalhealthAgreeddecision());
            medicalHealth.setAssessorview(ad.getMedicalhealthAssessorview());
            medicalHealth.setMyview(ad.getMedicalhealthMyview());
            medicalHealth.setNotes(ad.getMedicalhealthNotes());
        }
        medication = new MedicationPage();
        if (null != medication) {
            medication.setHomeRemedyRecord(new Medication_HomeRemedyRecord());
            if (medication.getHomeRemedyRecord() != null) {
                medication.getHomeRemedyRecord().setAgentsign(ad.getMedicationHomeremedyrecordAgentsign());
                medication.getHomeRemedyRecord().setAgentsigndate(ad.getMedicationHomeremedyrecordAgentsigndata());
                medication.getHomeRemedyRecord().setAssessor(ad.getMedicationHomeremedyrecordAssessor());
                medication.getHomeRemedyRecord().setDate(ad.getMedicationHomeremedyrecordDate());
                medication.getHomeRemedyRecord().setName(ad.getMedicationHomeremedyrecordName());
                medication.getHomeRemedyRecord().setOption(ad.getMedicationHomeremedyrecordOption());
                medication.getHomeRemedyRecord().setRelationship(ad.getMedicationHomeremedyrecordRelationship());
                medication.getHomeRemedyRecord().setSignature(ad.getMedicationHomeremedyrecordSignature());
                medication.getHomeRemedyRecord().setSigndate(ad.getMedicationHomeremedyrecordSigndate());
                medication.getHomeRemedyRecord().setService_name(ad.getMedicationHomeremedyrecordServiceName());
                medication.getHomeRemedyRecord().setAllergies_item(ad.getMedicationHomeremedyrecordAllergiesItem());

            }
            medication.setMedicationList(new Medication_MedicationList());
            if (null != medication.getMedicationList()) {
                medication.getMedicationList().setName(ad.getMedicationMedicationlistName());
                // list data
            }
            medication.setRisk(new Medication_Risk());
            if (null != medication.getRisk()) {
                medication.getRisk().setAllergie(ad.getMedicationRiskAllergie());
                medication.getRisk().setAllergiedetail(ad.getMedicationRiskAllergiedetail());
                medication.getRisk().setBestinterestdecisions(ad.getMedicationRiskBestinterestdecisions());
                medication.getRisk().setInhibitread(ad.getMedicationRiskInhibitread());
                medication.getRisk().setLackcapacity(ad.getMedicationRiskLackcapacity());
                medication.getRisk().setNogiven(ad.getMedicationRiskNogiven());
                medication.getRisk().setVisualimpairment(ad.getMedicationRiskVisualimpairment());
                medication.getRisk().setDrugReaction(new Medication_Risk_DrugReaction());
                if (medication.getRisk().getDrugReaction() != null) {
                    medication.getRisk().getDrugReaction()
                            .setAssessmentLevel(ad.getMedicationRiskDrugreactionAssessmentlevel());
                    medication.getRisk().getDrugReaction().setInvolved0(ad.getMedicationRiskDrugreactionInvolved0());
                    medication.getRisk().getDrugReaction().setInvolved1(ad.getMedicationRiskDrugreactionInvolved1());
                    medication.getRisk().getDrugReaction().setInvolved2(ad.getMedicationRiskDrugreactionInvolved2());
                    medication.getRisk().getDrugReaction().setUserUsed0(ad.getMedicationRiskDrugreactionUserused0());
                    medication.getRisk().getDrugReaction().setUserUsed1(ad.getMedicationRiskDrugreactionUserused1());
                    medication.getRisk().getDrugReaction().setUserUsed2(ad.getMedicationRiskDrugreactionUserused2());
                    // list data
                }
            }
        }
        keepSafe = new KeepSafe_Page();
        if (null != keepSafe) {
            keepSafe.setAgreeddecision(ad.getKeepsafeAgreeddecision());
            keepSafe.setAssessorview(ad.getKeepsafeAssessorview());
            keepSafe.setMyview(ad.getKeepsafeMyview());
            keepSafe.setNotes(ad.getKeepsafeNotes());
        }
        riskAssessMent = new RiskAssessMentPage();
        if (null != riskAssessMent) {
            riskAssessMent.setChoking(ad.getRiskassessmentChoking());
            riskAssessMent.setFalls(ad.getRiskassessmentFalls());
            riskAssessMent.setMedication(ad.getRiskassessmentMedication());
            riskAssessMent.setMoving(ad.getRiskassessmentMoving());
            riskAssessMent.setMust(ad.getRiskassessmentMust());
            riskAssessMent.setOther(ad.getRiskassessmentOther());
            riskAssessMent.setPremises(ad.getRiskassessmentPremises());
            riskAssessMent.setWaterlow(ad.getRiskassessmentWaterlow());
        }
        advancedCarePlan = new AdvancedCarePlanPage();
        if (null != advancedCarePlan) {
            advancedCarePlan.setComfortabletocomplete(ad.getAdvancedcareplanComfortabletocomplete());
            advancedCarePlan.setConsideradocument(ad.getAdvancedcareplanConsideradocument());
            advancedCarePlan.setDeclarewill(ad.getAdvancedcareplanDeclarewill());
            advancedCarePlan.setEasytolocate(ad.getAdvancedcareplanEasytolocate());
            advancedCarePlan.setFuneralplan(ad.getAdvancedcareplanFuneralplan());
            advancedCarePlan.setHaveattorney(ad.getAdvancedcareplanHaveattorney());
            advancedCarePlan.setHavewishe(ad.getAdvancedcareplanHavewishe());
            advancedCarePlan.setNotes(ad.getAdvancedcareplanNotes());
            advancedCarePlan.setRefusetreatment(ad.getAdvancedcareplanRefusetreatment());
            advancedCarePlan.setWhere(ad.getAdvancedcareplanWhere());
        }
        socialCulturalLeisure = new SocialCulturalLeisurePage();
        if (null != socialCulturalLeisure) {
            socialCulturalLeisure.setAgreeddecision(ad.getSocialculturalleisureAgreeddecision());
            socialCulturalLeisure.setAssessorview(ad.getSocialculturalleisureAssessorview());
            socialCulturalLeisure.setMyview(ad.getSocialculturalleisureMyview());
            socialCulturalLeisure.setNotes(ad.getSocialculturalleisureNotes());
        }
        carersUnpaidSupport = new CarersUnpaidSupportPage();
        learningWork = new LearningWorkPage();
        beParent = new BeParentPage();
        signature = new SignaturePage();
        if (null != carersUnpaidSupport) {
            carersUnpaidSupport.setAgreeddecision(ad.getCarersunpaidsupportAgreeddecision());
            carersUnpaidSupport.setAssessorview(ad.getCarersunpaidsupportAssessorview());
            carersUnpaidSupport.setMyview(ad.getCarersunpaidsupportMyview());
            carersUnpaidSupport.setNotes(ad.getCarersunpaidsupportNotes());
        }
        if (null != learningWork) {
            learningWork.setAgreeddecision(ad.getLearningworkAgreeddecision());
            learningWork.setAssessorview(ad.getLearningworkAssessorview());
            learningWork.setMyview(ad.getLearningworkMyview());
            learningWork.setNotes(ad.getLearningworkNotes());
        }
        if (null != beParent) {
            beParent.setAgreeddecision(ad.getBeparentAgreeddecision());
            beParent.setAssessorview(ad.getBeparentAssessorview());
            beParent.setMyview(ad.getBeparentMyview());
            beParent.setNotes(ad.getBeparentNotes());
        }
        if (null != signature) {
            signature.setAssessorname(ad.getSignatureAssessorname());
            signature.setAssessorSignature(ad.getSignatureAssessorsignature());
            signature.setAssessorsigndate(ad.getSignatureAssessorsigndate());
            signature.setBehalfname(ad.getSignatureBehalfname());
            signature.setBehalfSignature(ad.getSignatureBehalfsignature());
            signature.setBehalfsigndate(ad.getSignatureBehalfsigndate());
            signature.setName(ad.getSignatureName());
            signature.setSignature(ad.getSignatureSignature());
            signature.setSigndate(ad.getSignatureSigndate());
            signature.setBodymapcustname(ad.getBodymapCustomname());
            signature.setBodymapservicetime(ad.getBodymapSigndate());
            signature.setBodymapSignature(ad.getBodymapSignature());
        }

    }

    public AssessmentWithBLOBs toDatabaseBean() {
        AssessmentWithBLOBs ad = new AssessmentWithBLOBs();
        ad.setId(id);
        ad.setLanguage(language);
        ad.setStatus(status);
        ad.setLastmodify(lastmodify);
        ad.setCreatedby(getCreatedby());
        if (cover != null) {
            ad.setCoverName(cover.getName());
            ad.setCoverDate(cover.getDate());
            ad.setCoverCompleteddate(cover.getCompleteddate());
            ad.setCoverCompletedby(cover.getCompletedby());
        }
        if (null != personalInformation) {
            ad.setPersonalinformationAddress(personalInformation.getAddress());
            ad.setPersonalinformationDob(personalInformation.getDob());
            ad.setPersonalinformationEmail(personalInformation.getEmail());
            ad.setPersonalinformationHino(personalInformation.getHino());

            ad.setPersonalinformationName(personalInformation.getName());
            ad.setPersonalinformationTel(personalInformation.getTel());
            ad.setPersonalinformationTitle(personalInformation.getTitle());
            if (personalInformation.getLpa() != null) {
                ad.setPersonalinformationLpaName(personalInformation.getLpa().getName());
                ad.setPersonalinformationLpaRelationship(personalInformation.getLpa().getRelationship());
                ad.setPersonalinformationLpaTel(personalInformation.getLpa().getTel());
            }
            if (null != personalInformation.getNok()) {
                ad.setPersonalinformationNokAddress(personalInformation.getNok().getAddress());
                ad.setPersonalinformationNokEmail(personalInformation.getNok().getEmail());
                ad.setPersonalinformationNokName(personalInformation.getNok().getName());
                ad.setPersonalinformationNokRelationship(personalInformation.getNok().getRelationship());
                ad.setPersonalinformationNokTel(personalInformation.getNok().getTel());
            }
        }
        if (null != choiceAndControl) {
            ad.setChoiceandcontrolAgreeddecision(choiceAndControl.getAgreeddecision());
            ad.setChoiceandcontrolAssessorview(choiceAndControl.getAssessorview());
            ad.setChoiceandcontrolAttorneyAttorneytype(choiceAndControl.getAttorneyAttorneytype());
            ad.setChoiceandcontrolAttorneyHaveornot(choiceAndControl.getAttorneyHaveornot());
            ad.setChoiceandcontrolAttorneyNotes(choiceAndControl.getNotes());
            ad.setChoiceandcontrolAttorneyOthertype(choiceAndControl.getAttorneyOthertype());
            ad.setChoiceandcontrolAttorneyRegistered(choiceAndControl.getAttorneyRegistered());
            ad.setChoiceandcontrolMyview(choiceAndControl.getMyview());
        }
        if (null != communication) {
            ad.setCommunicationAgreeddecision(communication.getAgreeddecision());
            ad.setCommunicationAssessorview(communication.getAssessorview());
            ad.setCommunicationDetail(communication.getDetail());
            ad.setCommunicationMethod0(communication.isMethod_0());
            ad.setCommunicationMethod1(communication.isMethod_1());
            ad.setCommunicationMethod2(communication.isMethod_2());
            ad.setCommunicationMethod3(communication.isMethod_3());
            ad.setCommunicationMethod4(communication.isMethod_4());
            ad.setCommunicationMethod5(communication.isMethod_5());
            ad.setCommunicationMethod6(communication.isMethod_6());
            ad.setCommunicationMethod7(communication.isMethod_7());
            ad.setCommunicationMethod8(communication.isMethod_8());
            ad.setCommunicationMethod9(communication.isMethod_9());
            ad.setCommunicationMethod10(communication.isMethod_10());
            ad.setCommunicationMethod11(communication.isMethod_11());
            ad.setCommunicationMethod12(communication.isMethod_12());
            ad.setCommunicationMethod13(communication.isMethod_13());
            ad.setCommunicationMyview(communication.getMyview());
            ad.setCommunicationNotes(communication.getNotes());
            ad.setCommunicationRegister(communication.getRegister());
        }
        if (null != personalCare) {
            ad.setPersonalcareAgreeddecision(personalCare.getAgreeddecision());
            ad.setPersonalcareAssessorview(personalCare.getAssessorview());
            ad.setPersonalcareAssist(personalCare.getAssist());
            ad.setPersonalcareMyview(personalCare.getMyview());
            ad.setPersonalcareNotes(personalCare.getNotes());
        }
        if (null != nutritionHydration) {
            ad.setNutritionhydrationAgreeddecision(nutritionHydration.getAgreeddecision());
            ad.setNutritionhydrationAssessorview(nutritionHydration.getAssessorview());
            ad.setNutritionhydrationMyview(nutritionHydration.getMyview());
            ad.setNutritionhydrationNotes(nutritionHydration.getNotes());
        }
        if (null != medicalHealth) {
            ad.setMedicalhealthAgreeddecision(medicalHealth.getAgreeddecision());
            ad.setMedicalhealthAssessorview(medicalHealth.getAssessorview());
            ad.setMedicalhealthMyview(medicalHealth.getMyview());
            ad.setMedicalhealthNotes(medicalHealth.getNotes());
        }
        if (null != medication) {
            if (medication.getHomeRemedyRecord() != null) {
                ad.setMedicationHomeremedyrecordAgentsign(medication.getHomeRemedyRecord().getAgentsign());
                ad.setMedicationHomeremedyrecordAgentsigndata(medication.getHomeRemedyRecord().getAgentsigndate());
                ad.setMedicationHomeremedyrecordAssessor(medication.getHomeRemedyRecord().getAssessor());
                ad.setMedicationHomeremedyrecordDate(medication.getHomeRemedyRecord().getDate());
                ad.setMedicationHomeremedyrecordName(medication.getHomeRemedyRecord().getName());
                ad.setMedicationHomeremedyrecordOption(medication.getHomeRemedyRecord().getOption());
                ad.setMedicationHomeremedyrecordRelationship(medication.getHomeRemedyRecord().getRelationship());
                ad.setMedicationHomeremedyrecordSignature(medication.getHomeRemedyRecord().getSignature());
                ad.setMedicationHomeremedyrecordSigndate(medication.getHomeRemedyRecord().getSigndate());
                ad.setMedicationHomeremedyrecordServiceName(medication.getHomeRemedyRecord().getService_name());
                ad.setMedicationHomeremedyrecordAllergiesItem(medication.getHomeRemedyRecord().getAllergies_item());

            }
            if (null != medication.getMedicationList()) {
                ad.setMedicationMedicationlistName(medication.getMedicationList().getName());
                // list data
            }
            if (null != medication.getRisk()) {
                ad.setMedicationRiskAllergie(medication.getRisk().getAllergie());
                ad.setMedicationRiskAllergiedetail(medication.getRisk().getAllergiedetail());
                ad.setMedicationRiskBestinterestdecisions(medication.getRisk().getBestinterestdecisions());
                ad.setMedicationRiskInhibitread(medication.getRisk().getInhibitread());
                ad.setMedicationRiskLackcapacity(medication.getRisk().getLackcapacity());
                ad.setMedicationRiskNogiven(medication.getRisk().getNogiven());
                ad.setMedicationRiskVisualimpairment(medication.getRisk().getVisualimpairment());
                if (medication.getRisk().getDrugReaction() != null) {
                    ad.setMedicationRiskDrugreactionAssessmentlevel(
                            medication.getRisk().getDrugReaction().getAssessmentLevel());
                    ad.setMedicationRiskDrugreactionInvolved0(medication.getRisk().getDrugReaction().getInvolved0());
                    ad.setMedicationRiskDrugreactionInvolved1(medication.getRisk().getDrugReaction().getInvolved1());
                    ad.setMedicationRiskDrugreactionInvolved2(medication.getRisk().getDrugReaction().getInvolved2());
                    ad.setMedicationRiskDrugreactionUserused0(medication.getRisk().getDrugReaction().getUserUsed0());
                    ad.setMedicationRiskDrugreactionUserused1(medication.getRisk().getDrugReaction().getUserUsed1());
                    ad.setMedicationRiskDrugreactionUserused2(medication.getRisk().getDrugReaction().getUserUsed2());
                    // list data
                }
            }
        }
        if (null != keepSafe) {
            ad.setKeepsafeAgreeddecision(keepSafe.getAgreeddecision());
            ad.setKeepsafeAssessorview(keepSafe.getAssessorview());
            ad.setKeepsafeMyview(keepSafe.getMyview());
            ad.setKeepsafeNotes(keepSafe.getNotes());
        }
        if (null != riskAssessMent) {
            ad.setRiskassessmentChoking(riskAssessMent.getChoking());
            ad.setRiskassessmentFalls(riskAssessMent.getFalls());
            ad.setRiskassessmentMedication(riskAssessMent.getMedication());
            ad.setRiskassessmentMoving(riskAssessMent.getMoving());
            ad.setRiskassessmentMust(riskAssessMent.getMust());
            ad.setRiskassessmentOther(riskAssessMent.getOther());
            ad.setRiskassessmentPremises(riskAssessMent.getPremises());
            ad.setRiskassessmentWaterlow(riskAssessMent.getWaterlow());
        }
        if (null != advancedCarePlan) {
            ad.setAdvancedcareplanComfortabletocomplete(advancedCarePlan.getComfortabletocomplete());
            ad.setAdvancedcareplanConsideradocument(advancedCarePlan.getConsideradocument());
            ad.setAdvancedcareplanDeclarewill(advancedCarePlan.getDeclarewill());
            ad.setAdvancedcareplanEasytolocate(advancedCarePlan.getEasytolocate());
            ad.setAdvancedcareplanFuneralplan(advancedCarePlan.getFuneralplan());
            ad.setAdvancedcareplanHaveattorney(advancedCarePlan.getHaveattorney());
            ad.setAdvancedcareplanHavewishe(advancedCarePlan.getHavewishe());
            ad.setAdvancedcareplanNotes(advancedCarePlan.getNotes());
            ad.setAdvancedcareplanRefusetreatment(advancedCarePlan.getRefusetreatment());
            ad.setAdvancedcareplanWhere(advancedCarePlan.getWhere());
        }
        if (null != socialCulturalLeisure) {
            ad.setSocialculturalleisureAgreeddecision(socialCulturalLeisure.getAgreeddecision());
            ad.setSocialculturalleisureAssessorview(socialCulturalLeisure.getAssessorview());
            ad.setSocialculturalleisureMyview(socialCulturalLeisure.getMyview());
            ad.setSocialculturalleisureNotes(socialCulturalLeisure.getNotes());
        }
        if (null != carersUnpaidSupport) {
            ad.setCarersunpaidsupportAgreeddecision(carersUnpaidSupport.getAgreeddecision());
            ad.setCarersunpaidsupportAssessorview(carersUnpaidSupport.getAssessorview());
            ad.setCarersunpaidsupportMyview(carersUnpaidSupport.getMyview());
            ad.setCarersunpaidsupportNotes(carersUnpaidSupport.getNotes());
        }
        if (null != learningWork) {
            ad.setLearningworkAgreeddecision(learningWork.getAgreeddecision());
            ad.setLearningworkAssessorview(learningWork.getAssessorview());
            ad.setLearningworkMyview(learningWork.getMyview());
            ad.setLearningworkNotes(learningWork.getNotes());
        }
        if (null != beParent) {
            ad.setBeparentAgreeddecision(beParent.getAgreeddecision());
            ad.setBeparentAssessorview(beParent.getAssessorview());
            ad.setBeparentMyview(beParent.getMyview());
            ad.setBeparentNotes(beParent.getNotes());
        }
        if (null != signature) {
            ad.setSignatureAssessorname(signature.getAssessorname());
            ad.setSignatureAssessorsignature(signature.getAssessorSignature());
            ad.setSignatureAssessorsigndate(signature.getAssessorsigndate());
            ad.setSignatureBehalfname(signature.getBehalfname());
            ad.setSignatureBehalfsignature(signature.getBehalfSignature());
            ad.setSignatureBehalfsigndate(signature.getBehalfsigndate());
            ad.setSignatureName(signature.getName());
            ad.setSignatureSignature(signature.getSignature());
            ad.setSignatureSigndate(signature.getSigndate());
            ad.setBodymapCustomname(signature.getBodymapcustname());
            ad.setBodymapSigndate(signature.getBodymapservicetime());
            ad.setBodymapSignature(signature.getBodymapSignature());
        }

        return ad;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getLastmodify() {
        return lastmodify;
    }

    public void setLastmodify(Date lastmodify) {
        this.lastmodify = lastmodify;
    }

    public COVERPAGE getCover() {
        return cover;
    }

    public void setCover(COVERPAGE cover) {
        this.cover = cover;
    }

    public PersonalInformationPage getPersonalInformation() {
        return personalInformation;
    }

    public void setPersonalInformation(PersonalInformationPage personalInformation) {
        this.personalInformation = personalInformation;
    }

    public ChoiceAndControlPage getChoiceAndControl() {
        return choiceAndControl;
    }

    public void setChoiceAndControl(ChoiceAndControlPage choiceAndControl) {
        this.choiceAndControl = choiceAndControl;
    }

    public CommunicationPage getCommunication() {
        return communication;
    }

    public void setCommunication(CommunicationPage communication) {
        this.communication = communication;
    }

    public PersonalCarePage getPersonalCare() {
        return personalCare;
    }

    public void setPersonalCare(PersonalCarePage personalCare) {
        this.personalCare = personalCare;
    }

    public NutritionHydrationPage getNutritionHydration() {
        return nutritionHydration;
    }

    public void setNutritionHydration(NutritionHydrationPage nutritionHydration) {
        this.nutritionHydration = nutritionHydration;
    }

    public MedicalHealthPage getMedicalHealth() {
        return medicalHealth;
    }

    public void setMedicalHealth(MedicalHealthPage medicalHealth) {
        this.medicalHealth = medicalHealth;
    }

    public MedicationPage getMedication() {
        return medication;
    }

    public void setMedication(MedicationPage medication) {
        this.medication = medication;
    }

    public KeepSafe_Page getKeepSafe() {
        return keepSafe;
    }

    public void setKeepSafe(KeepSafe_Page keepSafe) {
        this.keepSafe = keepSafe;
    }

    public RiskAssessMentPage getRiskAssessMent() {
        return riskAssessMent;
    }

    public void setRiskAssessMent(RiskAssessMentPage riskAssessMent) {
        this.riskAssessMent = riskAssessMent;
    }

    public AdvancedCarePlanPage getAdvancedCarePlan() {
        return advancedCarePlan;
    }

    public void setAdvancedCarePlan(AdvancedCarePlanPage advancedCarePlan) {
        this.advancedCarePlan = advancedCarePlan;
    }

    public SocialCulturalLeisurePage getSocialCulturalLeisure() {
        return socialCulturalLeisure;
    }

    public void setSocialCulturalLeisure(SocialCulturalLeisurePage socialCulturalLeisure) {
        this.socialCulturalLeisure = socialCulturalLeisure;
    }

    public CarersUnpaidSupportPage getCarersUnpaidSupport() {
        return carersUnpaidSupport;
    }

    public void setCarersUnpaidSupport(CarersUnpaidSupportPage carersUnpaidSupport) {
        this.carersUnpaidSupport = carersUnpaidSupport;
    }

    public LearningWorkPage getLearningWork() {
        return learningWork;
    }

    public void setLearningWork(LearningWorkPage learningWork) {
        this.learningWork = learningWork;
    }

    public BeParentPage getBeParent() {
        return beParent;
    }

    public void setBeParent(BeParentPage beParent) {
        this.beParent = beParent;
    }

    public SignaturePage getSignature() {
        return signature;
    }

    public void setSignature(SignaturePage signature) {
        this.signature = signature;
    }

    public String getCreatedby() {
        return createdby;
    }

    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }

}
